<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/1/29
 * Time: 下午3:09
 * 实验语言
 */

namespace Home\Model;
use Think\Model\BaseModel;

class LanguageModel extends BaseModel{
    protected $_map = array(
        'language_name' => 'lan_name'
    );
    protected $_scope = array(
          'select' =>  array(
                'field' => array('lan_name'),
          ),
    );

    public function getLanguageInfoListByAll(){
        $result = $this->scope('select') -> select();
        if($result){
            return $result;
        }else{
            return array();
        }
    }

}